import 'package:FiduMart/generated/json/base/json_field.dart';
import 'package:FiduMart/generated/json/mining_list_entity_entity.g.dart';
import 'dart:convert';
export 'package:FiduMart/generated/json/mining_list_entity_entity.g.dart';

@JsonSerializable()
class MiningListEntityEntity {
	@JSONField(name: "List")
	List<MiningListEntityList>? list;
	int? page;
	int? pageSize;
	int? total;

	MiningListEntityEntity();

	factory MiningListEntityEntity.fromJson(Map<String, dynamic> json) => $MiningListEntityEntityFromJson(json);

	Map<String, dynamic> toJson() => $MiningListEntityEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class MiningListEntityList {
	String? id;
	String? nameZh;
	String? nameEn;
	String? nameTh;
	int? miningType;
	String? coverUrl;
	int? cycle;
	String? rate;
	int? min;
	int? max;
	int? oneMax;
	int? purchased;
	String? drnToToolRate;
	int? startTime;
	int? endTime;
	int? state;
	int? buyNeedInvite;
	int? inviteCount;
	int? totalInviteCount;
	int? totalInvestLimit;
	int? totalInvestNum;
	int? returnType;
	int? isTrial;
	int? trialQualification;

	MiningListEntityList();

	factory MiningListEntityList.fromJson(Map<String, dynamic> json) => $MiningListEntityListFromJson(json);

	Map<String, dynamic> toJson() => $MiningListEntityListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}